<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<link href="main.css" rel="stylesheet" type="text/css"/>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
	</head>
	<body>
	    <form action="search!stockquery.do" method="post">
		<table width="98%" height="80%" align="center" cellpadding=4 cellspacing=1 class="tableborder">
			<tr>
			   <td colspan="11" class="header">采购定单查询</td>
			</tr>
			<tr>
			  <td colspan="8" class="altbg1">
					选择查询条件：
		          <select name="type">
					  <option value="orderformid" selected>订单编号</option>
					  <option value="goodsname" >物品名称</option>
					  <option value="trademark" >牌号</option>
					  <option value="spec">规格</option>
				     
			       </select>
				   <input type="text" name="value" maxlength="40"/>
		           <input type="submit" value="查询"/></td>
			</tr>
			<tr class="altbg1"> 
			    <td colspan="8"></td>
			</tr>
			<tr class="altbg1" align="center">
				<th width="15%">订单编号</th>
			    <th width="12%" >物品名称</th>
			    <th width="13%" >牌号</th>
			    <th width="11%" >规格</th>
			    <th width="11%">数量</th>
			    <th width="15%">供应商</th>
			    <th width="11%">联系方式</th>
			    <th width="12%">订单状态</th>
		    </tr>
		    <s:iterator value="pager.resultList"> 
			<tr class="altbg2" align="center">
			<td><s:property value="orderformid" /></td>
			<td><s:property value="goodsname" /></td>
			<td><s:property value="trademark" /></td>
			<td><s:property value="spec" /></td>
			<td><s:property value="quantity" /></td>
			<td><s:property value="provider" /></td>
			<td><s:property value="link" /></td>
			<td><s:property value="state" /></td>
	      </tr>
	      </s:iterator>
		</table>
		</form>
		
			<s:form action="stockorderform!list.do" method="post" name="form1">	
		<table border="0" width="100%" class="pager">
			<tr>
				<td align="left">每页记录数：
					<s:select name="pageSize" key="pager.pageSize" list="pager.pageSizeIndexs" value="pager.pageSize" onchange="document.all.pageNo.value='1';document.all.form1.submit();"/>
				</td>
				<td align="center">
				总记录数：<s:property value="pager.rowCount" />
				</td>
				<td align="right">
					<a href="javascript:document.all.pageNo.value='<s:property value="pager.firstPageNo" />';document.all.form1.submit();">首页</a>
					<a href="javascript:document.all.pageNo.value='<s:property value="pager.prePageNo" />';document.all.form1.submit();">前一页</a>
					<a href="javascript:document.all.pageNo.value='<s:property value="pager.nextPageNo" />';document.all.form1.submit();">后一页</a>
					<a href="javascript:document.all.pageNo.value='<s:property value="pager.lastPageNo" />';document.all.form1.submit();">尾页</a>
					<s:select name="pageNo" list="pager.pageNoIndexs" value="pager.pageNo" onchange="document.all.form1.submit();"/>
				</td>
				<td width="20"></td>
			</tr>
		</table>
	</s:form>
	</body>
</html>
